<template>
  <div class="abc">
    <p>写法：{{ fn }}</p>
    <h1>{{ msg }}</h1>
  </div>
</template>

<script>
import { ref } from 'vue'

export default {
  setup() {
    let msg = ref('你好,世界!')
    let fn = ref('组合式')
    return {
      msg,
      fn,
    }
  },
}
</script>

<!-- <script>
export default {
  data() {
    let msg = '你好,世界!'
    let fn = '选项式'
    return {
      msg,
      fn,
    }
  },
}
</script> -->

<style scoped>
.abc {
  min-width: calc(100vw - 200px);
  min-height: calc(100vh - 160px);
  background-color: lightcyan;
  display: flex;
  flex-direction: column;
}
</style>
